package org.rails.core.web;

/**
 * 如果表单参数含有二制数据,可用此类获取,例如 ClientFile file = (ClientFile)params.get("file")。
 * @author jack
 *
 */
public class ClientFile {
	
	private String contentType;
	private String fieldName;
	private String name;
	private byte[] byteArray;
	
	public ClientFile(String contentType,String fieldName,
			String name,byte[] byteArray){
		super();
		this.contentType = contentType;
		this.fieldName = fieldName;
		this.name = name;
		this.byteArray = byteArray;
	}

	public String getContentType() {
		return contentType;
	}

	public String getFieldName() {
		return fieldName;
	}

	public String getName() {
		return name;
	}

	public byte[] getByteArray() {
		return byteArray;
	}
}
